In 2023, the State Council of China issued the "New Era of Green Development in China" white paper, which emphasizes the vigorous promotion of photovoltaic base construction in desert, Gobi, and desert areas. Conventional fixed solar power generation systems have relatively low light utilization efficiency, and light-tracking products based on photoelectric tracking lack the ability to resist environmental interference, making them unsuitable for high-precision tracking in complex environments. To address these issues, this project designs a foldable solar photovoltaic automatic tracking device with self-cleaning functionality. The device employs a control scheme that combines photoelectric tracking with sun path trajectory tracking to achieve high-precision solar tracking. Experimental results show that this device improves power generation by 34.8% compared to fixed solar power generation systems. Under specific conditions, the photovoltaic panels can automatically retract and self-clean, enhancing the device's environmental adaptability. To enable remote monitoring and control of the equipment, the device is equipped with Internet of Things (IoT) technology and a cloud monitoring platform.